/**
 * Package:com.goldcitynet.server.config;
 * $Id: ServerConfig.java,v 1.9 2009/03/20 08:34:35 yangc Exp $
 * Copyright(c) 2001-2005 www.afteryuan.com
 */
package com.afteryuan.server.config;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * ServerConfig
 * <p/>
 * <p><a href="ServerConfig.java.html"><i>View Source</i></a></p>
 *
 * @author <a href="mailto:afteryuan@afteryuan.com">$Author: yangc $</a>
 * @version $Revision: 1.9 $
 */
public class Configuration {
    private static Configuration _instance;

    public static Configuration getInstance() {
        if (_instance == null) _instance = new Configuration();
        return _instance;
    }

    private Configuration() {
    }

    private static Log log = LogFactory.getLog(Configuration.class);


    /**
     * Choose your favorite port number.
     */
    private int port = 10088;

    /**
     * 用户加入和切换场景场景的时候,是否广播信息
     * 注意:如果设置为true.会影响系统性能
     */
    private boolean isBroadcastJoinRoom=false;

    /**
     * 用户加入和切换场景场景的时候,是否广播信息
     * 注意:如果设置为true.会影响系统性能
     */
    private boolean isBroadcastQuitRoom=false;

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public boolean isBroadcastJoinRoom() {
        return isBroadcastJoinRoom;
    }

    public void setBroadcastJoinRoom(boolean broadcastJoinRoom) {
        isBroadcastJoinRoom = broadcastJoinRoom;
    }

    public boolean isBroadcastQuitRoom() {
        return isBroadcastQuitRoom;
    }

    public void setBroadcastQuitRoom(boolean broadcastQuitRoom) {
        isBroadcastQuitRoom = broadcastQuitRoom;
    }
}